<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Login</title>
   <base href="<%=request.getContextPath()%>/">
  <link rel="stylesheet" type="text/css" href="${surl}css/style.css">
  <link rel="stylesheet" type="text/css" href="${surl}css/login.css">
</head>
<body>
  <div id="all" class="all">
    <div class="logo">
      <img src="${surl}images/LOGO_Web_Login_90x180.png" />
      <p id="exam_t" class="my_font2">Online Exam Web System</p>
    </div>
    <div class="panel">
      <div class="welcome">
        <p class="my_font1">Welcome to login!</p>
      </div>
      <form id="login_form" action="user/saveLogin" method="post">
        <div class="login_panel">

          <div id="error_tip" class="error_tip"
            <c:if test="${tip_message != null}">
                style="visibility: visible;"
              </c:if>>${tip_message}</div>

          <div class="input_area">
            <label for="userName"><img class="input_img"
              src="static/images/ICN_Usename2_20x20.png" /></label>
            <input id="userName" name="userName" class="m_input"
              maxlength="20" type="text" placeholder="Username" /> <img
              id="wrong_img1" class="wrong_img"
              src="${surl}images/ICN_Client_Login_Wrong_20X20.png" />
          </div>
          <div class="input_area">
            <label for="password"><img class="input_img"
              src="${surl}images/ICN_Password_20x15.png" /></label>
            <input id="password" name="password" class="m_input"
              maxlength="20" type="password" placeholder="Password" /> <img
              id="wrong_img2" class="wrong_img"
              src="${surl}images/ICN_Client_Login_Wrong_20X20.png" />
          </div>
          <input id="submit_btn" class="btn submit_btn" type="button"
            value="Login" />

          <div class="remember">
            <input type="checkbox" name="remember" checked value="1" />&nbsp;Remember me
            <a href="#" id="forget_a">Forget password?</a>
          </div>
        </div>
        <input id="go" type="hidden" name="go" value="${param.go}" />
      </form>
    </div>
  </div>
  <jsp:include page="foot.jsp"></jsp:include>

  <script src="${surl}js/jquery-1.10.2.min.js"></script>
  <script src="${surl}js/login.js"></script>
</body>
<script>
    var hash = location.hash;
    var go = document.getElementById("go").value
    document.getElementById("go").value = go + hash;
</script>
</html>